from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # serve static media via django (eg. css)
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT }),
    #scopo url patterns
	(r'^scopo/$', 'scopo.views.index'),
	(r'^$', 'scopo.views.index'),
	(r'^viewsaved/$', 'scopo.views.view_saved'),
	(r'^scopo/query/$', 'scopo.views.query'),
	(r'^scopo/login/$', 'django.contrib.auth.views.login', {'template_name' : 'scopo/login.html'}),
	(r'^login/$', 'django.contrib.auth.views.login', {'template_name' : 'scopo/login.html'}),
	(r'^scopo/register/$', 'scopo.views.register'),
	(r'^scopo/logout/$', 'django.contrib.auth.views.logout'),
	(r'^logout/$', 'django.contrib.auth.views.logout'),
	#added for saving by ajax
	(r'^ajaxsave/$', 'scopo.views.ajaxsave'),
	(r'^ajaxget/$', 'scopo.views.ajaxget'),
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
